package com.assignwork.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @ClassName WorkArrangeShip
 * @Description 航运配工
 * @Author dujianyu
 * @Date 2023/12/21 15:39
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "航运配工", description = "")
@TableName("Work_arrange_ship")
public class WorkArrangeShip extends TenantEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "作业线ID")
    private Long assemblyLineId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "昼夜计划ID")
    private Long planId;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "时间段")
    private String cargoType;

    @ApiModelProperty(value = "散杂")
    private String packageBulk;

    @ApiModelProperty(value = "工人信息")
    private String workerInfo;

    @ApiModelProperty(value = "吊车信息")
    private String craneInfo;

    @ApiModelProperty(value = "叉车信息")
    private String forkliftInfo;

    @ApiModelProperty(value = "牵引车信息")
    private String tractorInfo;

    @ApiModelProperty(value = "装载机信息")
    private String loaderInfo;

    @ApiModelProperty(value = "挖掘机信息")
    private String excavatorInfo;

}
